const express = require('express');
const bodyParser = require('body-parser')

const config = require('./config')

const app = express();

app.use(bodyParser.json())

const router = require('./routers/index')
app.use(config.rootPathname, router)

app.listen(config.port, () => {
  console.log('listen port: '+config.port)
})